import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import p1.UserService;

public class Mytest {
    public static void main(String[] args) {
        ApplicationContext cpx = new ClassPathXmlApplicationContext("applicationContext.xml");
        //动态代理代理的是一个接口,不能代理实现类
        UserService userService = cpx.getBean("UserService", UserService.class);
      userService.add();
    }
}
